
const state = {
  nickname:localStorage.getItem('nickname'),
  token:localStorage.getItem('token'),
  imgUrl:localStorage.getItem('imgUrl')
}
const mutations = {
  LOGIN(state,loginData){
    state.nickname = loginData.nickname
    state.imgUrl = loginData.imgUrl
  }
}

export default {
  state,
  mutations
}